//:C07:PriorityQueue1.cpp
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <queue>
using namespace std;

int main(void)
{
    priority_queue<int> pqi;
    srand(time(0));    // Seed the random number generator
    for (int i = 0; i < 100; i++)
    {
        pqi.push(rand() % 25);
    }

    while (!pqi.empty())
    {
        cout << pqi.top() << ' ';
        pqi.pop();
    }
}